load("@io_bazel_rules_go//go:def.bzl", "go_test")

go_test(
    name = "executor_test",
    timeout = "short",
    srcs = [
        "executor_test.go",
        "main_test.go",
    ],
    flaky = True,
    shard_count = 50,
    deps = [
        "//pkg/config",
        "//pkg/ddl",
        "//pkg/domain",
        "//pkg/domain/infosync",
        "//pkg/executor",
        "//pkg/executor/internal/exec",
        "//pkg/expression",
        "//pkg/infoschema",
        "//pkg/kv",
        "//pkg/meta",
        "//pkg/meta/autoid",
        "//pkg/meta/model",
        "//pkg/parser",
        "//pkg/parser/model",
        "//pkg/parser/mysql",
        "//pkg/parser/terror",
        "//pkg/planner",
        "//pkg/planner/core",
        "//pkg/planner/core/base",
        "//pkg/planner/core/resolve",
        "//pkg/session",
        "//pkg/sessionctx",
        "//pkg/sessionctx/stmtctx",
        "//pkg/sessionctx/variable",
        "//pkg/sessiontxn",
        "//pkg/store/mockstore",
        "//pkg/table/tables",
        "//pkg/tablecodec",
        "//pkg/testkit",
        "//pkg/testkit/testdata",
        "//pkg/types",
        "//pkg/util",
        "//pkg/util/dbterror/exeerrors",
        "//pkg/util/dbterror/plannererrors",
        "//pkg/util/memory",
        "//pkg/util/mock",
        "//pkg/util/replayer",
        "//pkg/util/rowcodec",
        "//pkg/util/sqlexec",
        "//pkg/util/timeutil",
        "@com_github_golang_protobuf//proto",
        "@com_github_pingcap_errors//:errors",
        "@com_github_pingcap_failpoint//:failpoint",
        "@com_github_pingcap_tipb//go-tipb",
        "@com_github_stretchr_testify//require",
        "@com_github_tikv_client_go_v2//oracle",
        "@com_github_tikv_client_go_v2//testutils",
        "@com_github_tikv_client_go_v2//tikv",
        "@io_opencensus_go//stats/view",
        "@org_uber_go_goleak//:goleak",
    ],
)
